CMAKE_MINIMUM_REQUIRED(VERSION 3.16)

### source
FILE(GLOB AIR_CONFIG_SRCS "*.cc" "*.c")

### lib
ADD_LIBRARY(air_config OBJECT ${AIR_CONFIG_SRCS})
TARGET_LINK_LIBRARIES(air_config
    air_grpc_pb
)

### test
ADD_EXECUTABLE(config_test
    test/config_test.cc
    $<TARGET_OBJECTS:air_config>
    $<TARGET_OBJECTS:air_framework>
)
TARGET_LINK_LIBRARIES(config_test
    gtest_main
    gtest
    air_grpc_pb
)
